import request from '@/utils/request'

// 查询水管机构水费核算列表
export function listWiOrgfeeY(year,orgCd) {
  return request({
    url: '/waterPrice/WiOrgfeeY/'+year+'/'+orgCd,
    method: 'get',
  })
}
// 查询农户水费核算列表
export function listWiFarmfeeY(year,farmCd) {
  return request({
    url: '/waterPrice/WiFarmfeeY/'+year+'/'+farmCd,
    method: 'get',
  })
}

// 查询水管机构水费核算详细
export function getWiOrgfeeY(feeYr) {
  return request({
    url: '/waterPrice/WiOrgfeeY/' + feeYr,
    method: 'get'
  })
}
//水费核算
export function listcaleFee(query) {
  return request({
    url: 'waterPrice/WiOrgfeeY/caleFee',
    method: 'get',
    params: query
  })
}
// 新增水管机构水费核算
export function addWiOrgfeeY(data) {
  return request({
    url: '/waterPrice/WiOrgfeeY',
    method: 'post',
    data: data
  })
}

// 修改水管机构水费核算
export function updateWiOrgfeeY(data) {
  return request({
    url: '/waterPrice/WiOrgfeeY',
    method: 'put',
    data: data
  })
}

// 删除水管机构水费核算
export function delWiOrgfeeY(feeYr) {
  return request({
    url: '/waterPrice/WiOrgfeeY/' + feeYr,
    method: 'delete'
  })
}
